package com.bw.dg.common;

import com.bw.dg.pojo.User;

import java.io.Serializable;

/**
 * @ClassName Result
 * @Description TODO
 * @Author 郭骏扬
 * @Date 2020/2/23 10:19
 * @Version 1.0
 **/
public class Result implements Serializable {
    private boolean flag;
    private Integer code;
    private String massage;
    private Object data;
    private  boolean success;
    private  String message;


    public Result(boolean flag, Integer code, String massage,boolean success,String message) {
        this.flag = flag;
        this.code = code;
        this.massage = massage;
        this.success = success;
        this.message =message;
    }

    public Result(boolean flag, Integer code, String massage) {
        this.flag = flag;
        this.code = code;
        this.massage = massage;
        this.data = data;
        this.success = success;
        this.message =message;
    }
    public Result(boolean success, int ok, String message, User user) {
        super();
        this.success = success;
        this.message = message;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
